import request from '@/utils/axios-config'

// 订单相关API
export function getOrderList() {
  return request({
    url: '/admin/goodsOrder/list',
    method: 'get'
  })
}

export function getOrderPage(params) {
  return request({
    url: '/admin/goodsOrder/page',
    method: 'get',
    params
  })
}

export function getOrderDetail(id) {
  return request({
    url: `/admin/goodsOrder/detail/${id}`,
    method: 'get'
  })
}

export function saveOrUpdateOrder(data) {
  return request({
    url: '/admin/goodsOrder/saveOrUpdate',
    method: 'post',
    data
  })
}

export function deleteOrder(id) {
  return request({
    url: `/admin/goodsOrder/deleteById/${id}`,
    method: 'delete'
  })
} 